package com.kfyty.loveqq.framework.boot.mybatis.example.service.impl;

import com.kfyty.loveqq.framework.boot.mybatis.example.dao.UserMapper;
import com.kfyty.loveqq.framework.boot.mybatis.example.model.User;
import com.kfyty.loveqq.framework.boot.mybatis.example.service.UserService;
import com.kfyty.loveqq.framework.core.autoconfig.annotation.Service;
import com.mybatisflex.annotation.UseDataSource;
import com.mybatisflex.loveqq.framework.boot.autoconfig.service.ServiceImpl;

import java.util.List;

/**
 * 描述:
 *
 * @author kfyty725
 * @date 2024/8/2 17:07
 * @email kfyty725@hotmail.com
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    @UseDataSource("default")
    public List<User> listAll() {
        return this.mapper.listAll();
    }
}
